﻿using System;
using System.Collections.Generic;

namespace DataManageSystem.Models.LimsModels;

public partial class TObjectAttribute
{
    /// <summary>
    /// 唯一主键
    /// </summary>
    public string Guid { get; set; } = null!;

    /// <summary>
    /// 空间主键
    /// </summary>
    public string? ObjectGuid { get; set; }

    /// <summary>
    /// 1:读数据，2：写数据
    /// </summary>
    public int? RecordType { get; set; }

    /// <summary>
    /// 显示标题
    /// </summary>
    public string? ShowTitle { get; set; }

    /// <summary>
    /// 值类型
    /// </summary>
    public string? ValueType { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string? CreateUser { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string? UpdateUser { get; set; }

    /// <summary>
    /// 有效状态
    /// </summary>
    public bool? Valid { get; set; }

    /// <summary>
    /// 用户部门ID
    /// </summary>
    public string? DeptGuid { get; set; }

    /// <summary>
    /// 寄存器编码
    /// </summary>
    public string? RegisterCode { get; set; }

    /// <summary>
    /// 寄存器点位地址
    /// </summary>
    public string? RegisterStateKey { get; set; }

    /// <summary>
    /// 显示值
    /// </summary>
    public string? ShowValue { get; set; }

    /// <summary>
    /// 寄存器点位guid
    /// </summary>
    public string? RegisterStateGuid { get; set; }

    /// <summary>
    /// 显示顺序
    /// </summary>
    public int? Order { get; set; }

    /// <summary>
    /// 是否需要记录
    /// </summary>
    public bool? Log { get; set; }

    /// <summary>
    /// 记录频率，秒为单位，60的倍数
    /// </summary>
    public int? LogRate { get; set; }

    /// <summary>
    /// 监测点名称
    /// </summary>
    public string? Name { get; set; }

    /// <summary>
    /// 报警规则guid
    /// </summary>
    public string? WarningGuid { get; set; }

    /// <summary>
    /// 关联属性Guid
    /// </summary>
    public string? RelatedAttributeGuid { get; set; }

    public int? Type { get; set; }

    public sbyte? IsDefault { get; set; }
}
